package com.zrf.testchatgpt.service.impl;

import com.zrf.testchatgpt.entity.Detail;
import com.zrf.testchatgpt.mapper.DetailMapper;
import com.zrf.testchatgpt.service.IDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zrf
 * @since 2023-03-15
 */
@Service
public class DetailServiceImpl extends ServiceImpl<DetailMapper, Detail> implements IDetailService {
    @Autowired
    DetailMapper detailMapper;

    @Override
//    @Async
    public int insertDetail(Detail detail) {
        return detailMapper.insertDetail(detail);
    }
}
